<nz-card>
  <sf #searchForm mode="search" [schema]="searchSchema" [formData]="queryFormData" [button]="null">
  </sf>

  <div nz-row>
    <div nz-col nzSpan="12" style="text-align: left;padding-left: 5px;padding-bottom: 15px;">
      <button (click)="add()" nz-button nzType="primary"><i nz-icon nzType="plus"></i>规则新增</button>
    </div>
    <div nz-col nzSpan="12" style="text-align: right;padding-right: 5px;padding-bottom: 15px;">
      <button (click)="query()" nz-button nzType="primary"><i nz-icon nzType="search"></i>查询规则</button>
    </div>
  </div>

  <lb-grid #st [columns]="columns" sname="jgyj_gzcx" [queryparas]="{}">
    <ng-template lb-row="custom" let-item let-index="index" let-column="column">
      <nz-switch [ngModel]="item.JGZ001=='1'" (ngModelChange)="changeSxState(item.JGZ004)"></nz-switch>
    </ng-template>
  </lb-grid>

</nz-card>

<nz-modal [(nzVisible)]="showAddWindow" nzTitle="规则新增" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOk()"
  nzWidth="400">
  <sf #addWindow [schema]="addSchema" [formData]="addFormData" [button]="null" nzOkText="确定">
  </sf>
</nz-modal>

<nz-modal [(nzVisible)]="showModiWindow" nzTitle="规则修改" (nzOnCancel)="modiHandleCancel()" (nzOnOk)="modiHandleOk()"
  nzWidth="400">
  <sf #modiWindow [schema]="modiSchema" [formData]="modiFormData" [button]="null" nzOkText="确定">
  </sf>
</nz-modal>